/* =========================================
   SISTEMA DE ILUMINACIÓN (CARROCERÍA)
   Definición de variables estáticas y temas
   ========================================= */
:root {
    --navy-blue: #002147;
    --navy-light: #003673;
    --navy-dark: #000a1a; /* Deeper navy for premium contrast */
    --accent-yellow: #FFCC00;
    --accent-yellow-hover: #fbbf24;
    --silver: #cbd5e1;
    --silver-dark: #64748b;
    --white: #ffffff;
    --bg-dark: #020617; /* Slate-950 equivalent for ultra-premium backdrop */
    
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1400px; /* Slightly wider for modern monitors */
    margin: 0 auto;
    padding: 0 4%;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-yellow), #fcd34d);
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--silver-dark);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.py-section {
    padding: 6rem 0;
}

.bg-dark {
    background-color: var(--bg-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--navy-dark);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--silver-dark);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.5s var(--ease-out-expo);
    padding: 2rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logotipo Normal - Estilo Clásico */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 90px;
    margin-right: 2rem;
    padding: 5px 0;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

body.night-mode {
    --navy-dark: #1a1a1a;
    --bg-dark: #111111;
    --navy-blue: #222222;
    --navy-light: #333333;
    --text-primary: #ffffff;
    --silver: #cccccc;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--silver);
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 18, 38, 0.95) 0%, rgba(0, 33, 71, 0.7) 50%, rgba(5, 5, 16, 0.95) 100%), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Tech grid background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-top: 5rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--accent-yellow);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInDown 1s var(--ease-out);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero h1 i {
    font-style: normal;
    background: linear-gradient(120deg, var(--white), var(--silver-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--silver);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Marquee Authority */
.authority-bar {
    background-color: var(--accent-yellow);
    color: var(--navy-dark);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.marquee {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee span {
    font-weight: 800;
    font-size: 1rem;
    padding-right: 2rem;
    letter-spacing: 0.1em;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-header p {
    color: var(--silver);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 204, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.2));
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--silver-dark);
    font-size: 0.95rem;
}

/* Authority Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--silver);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-box {
    position: relative;
    padding: 2rem;
}

.tech-overlay {
    position: relative;
    border: 1px solid rgba(255, 204, 0, 0.3);
    padding: 1rem;
    background: rgba(0, 33, 71, 0.5);
    backdrop-filter: blur(10px);
}

.crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-yellow);
    border-style: solid;
}

.crosshair.top-left {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.crosshair.top-right {
    top: -2px;
    right: -2px;
    border-width: 2px 2px 0 0;
}

.crosshair.bottom-left {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 2px 2px;
}

.crosshair.bottom-right {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

.mockup-img {
    height: 350px;
    background: linear-gradient(to right, rgba(0, 33, 71, 0.4), rgba(255, 204, 0, 0.1)), url('assets/scanner_3d.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--accent-yellow);
}

.scan-data {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 18, 38, 0.85);
    padding: 15px 20px;
    border-left: 3px solid var(--accent-yellow);
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: fadeInRight 1s ease forwards 0.5s;
}

.scan-data h4 {
    color: var(--accent-yellow);
    margin-bottom: 8px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.scan-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.6;
}

.scan-data li::before {
    content: "⮞";
    color: var(--accent-yellow);
    margin-right: 8px;
    font-size: 0.8rem;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Store */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--navy-blue);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: transform 0.3s var(--ease-out);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-img {
    height: 200px;
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02)), linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--silver-dark);
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: var(--silver-dark);
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--silver-dark);
    font-size: 0.9rem;
}

/* Utilities for JS animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.in-view {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--navy-dark);
    z-index: 101;
    transition: right 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions .btn-outline {
        display: none; /* Hide Contact button to save space, it's in mobile menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .marquee span {
        font-size: 0.8rem;
    }
}

/* =========================================
   REVEAL ANIMATION ENGINE
   ========================================= */
[data-reveal] {
    opacity: 0;
    transition: all 1s var(--ease-out-expo);
    will-change: transform, opacity;
}

[data-reveal="fade"].active {
    opacity: 1;
}

[data-reveal="slide-up"] {
    transform: translateY(40px);
}

[data-reveal="slide-up"].active {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="slide-right"] {
    transform: translateX(-50px);
}

[data-reveal="slide-right"].active {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="slide-left"] {
    transform: translateX(50px);
}

[data-reveal="slide-left"].active {
    opacity: 1;
    transform: translateX(0);
}

/* Base Cards Enhancement */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(8px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-yellow);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

/* Mobile Sticky Bottom Nav */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        padding: 0.8rem 0;
        z-index: 999;
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    }
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--silver);
        font-size: 0.75rem;
        cursor: pointer;
    }
    .mobile-bottom-nav .nav-item .icon {
        font-size: 1.2rem;
    }
    /* Hide desktop-only actions on mobile if redundant */
    .desktop-actions { display: none; }
}
@media (min-width: 769px) {
    .mobile-bottom-nav { display: none; }
}
/* =========================================
   ESTILOS PARA PÁGINAS LEGALES
   ========================================= */

.legal-section {
    background-color: var(--navy-dark);
    padding-top: 150px;
    /* Espacio extra para que no lo tape la barra de navegación fija */
    min-height: 80vh;
}

.legal-container {
    max-width: 800px;
    /* Más estrecho que el container normal para mejorar la lectura */
    margin: 0 auto;
    padding: 0 5%;
    color: var(--silver);
}

.legal-container h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--silver-dark);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content h2 {
    color: var(--accent-yellow);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    /* Más espacio entre líneas para leer mejor */
}

.legal-content ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--white);
}

/* =========================================
   ASISTENTE DE TALLER (Chat Inteligente)
   ========================================= */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-trigger {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-yellow);
    background: var(--navy-dark);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.chat-trigger .floating-head {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.chat-window {
    width: 320px;
    background: var(--navy-dark);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: all 0.3s var(--ease-out);
}

.chat-window.hidden {
    display: none;
}

.chat-header {
    background: var(--accent-yellow);
    color: var(--navy-dark);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    min-height: 200px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--navy-light);
}

.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--white);
    outline: none;
    font-family: var(--font-body);
}

.chat-input-area input::placeholder {
    color: var(--silver-dark);
}

/* =========================================
   SISTEMA DE ANIMACIÓN DOC (APROBACIÓN)
   ========================================= */
/* =========================================
   SISTEMA DE APROBACIÓN DINÁMICA (DOC RATÓN)
   ========================================= */
.doc-badge-mouse {
    position: absolute;
    pointer-events: none; /* Atraviesa los clics para no bloquear la foto */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.doc-badge-mouse.visible {
    opacity: 1;
    transform: scale(1);
}

.doc-happy-face {
    width: 70px; /* CARA GRANDE de Doc */
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
    background: var(--white);
}

.doc-happy-text {
    background: rgba(0, 18, 38, 0.95);
    color: var(--accent-yellow);
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: -10px; /* Superpone un poco sobre la imagen */
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.service-feat-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-yellow);
}

.product-card {
    position: relative;
}

/* =========================================
   CONFIGURADOR FURGONETA IDEAL
   ========================================= */
.configurator-wrapper {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 2.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 3rem;
}

.doc-advisor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doc-advisor img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--accent-yellow);
    object-fit: cover;
    background: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.doc-speech {
    background: rgba(0, 18, 38, 0.8);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
    font-style: italic;
    color: var(--silver);
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.doc-speech::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 18, 38, 0.8) transparent;
}

.config-panels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.config-step {
    animation: fadeInRight 0.4s ease forwards;
}

.config-step.hidden {
    display: none;
}

.config-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.config-option {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--navy-light);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.config-option:hover {
    border-color: rgba(255, 204, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.config-option.selected {
    border-color: var(--accent-yellow);
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.config-option h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.config-option p {
    font-size: 0.85rem;
    color: var(--silver-dark);
    margin: 0;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.summary-list li {
    padding: 1rem 1.5rem;
    background: rgba(0, 18, 38, 0.5);
    border-radius: 6px;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    border-left: 3px solid var(--accent-yellow);
    color: var(--silver);
    font-size: 1rem;
}

.config-total {
    font-size: 1.2rem;
    color: var(--silver-dark);
    text-align: right;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .configurator-wrapper {
        grid-template-columns: 1fr;
    }
    .config-options {
        grid-template-columns: 1fr;
    }
}

/* Tooltips del Configurador */
.config-option {
    position: relative;
    /* Necesario para anclar el tooltip */
}

.option-tooltip {
    position: absolute;
    bottom: 110%; /* Aparece justo encima del cuadro */
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    background: var(--bg-dark);
    padding: 8px;
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
    border: 2px solid var(--accent-yellow);
}

.config-option:hover .option-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.option-tooltip img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.option-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: var(--accent-yellow) transparent transparent transparent;
}

/* Cortinilla Mágica */
.magic-curtain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, var(--accent-yellow), var(--bg-dark));
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    mix-blend-mode: color-dodge;
}
.magic-curtain.active {
    animation: flashMagic 1.5s ease-out forwards;
}

@keyframes flashMagic {
    0% { opacity: 0; }
    30% { opacity: 1; filter: brightness(2); }
    100% { opacity: 0; }
}

/* Pseudo 3D Furgoneta */
.van-3d-container {
    perspective: 1000px;
    margin: 2rem auto;
    width: 100%;
    max-width: 400px;
    height: 250px;
}

.van-3d-container.hidden {
    display: none;
}

.van-3d-model {
    width: 100%;
    height: 100%;
    background: url('assets/camper_final_3d.png') center / contain no-repeat;
    transform-style: preserve-3d;
    cursor: grab;
    transition: transform 0.1s ease-out;
}

.van-3d-model:active {
    cursor: grabbing;
}

/* =========================================
   CARRITO DE COMPRA Y MODAL BIZUM
   ========================================= */
.cart-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--navy-dark);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-float:hover {
    transform: scale(1.1);
}
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.cart-modal, .bizum-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 5, 13, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.cart-modal.hidden, .bizum-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.cart-content, .bizum-content {
    background: var(--navy-dark);
    border: 1px solid var(--navy-light);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.cart-modal.hidden .cart-content, .bizum-modal.hidden .bizum-content {
    transform: translateY(50px);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.cart-header h3 { margin: 0; color: var(--white); font-size: 1.5rem; }
.btn-close {
    background: none; border: none; color: var(--silver);
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.btn-close:hover { color: var(--accent-yellow); }

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-yellow);
}
.cart-item-name { font-size: 0.95rem; color: var(--silver); width: 60%; line-height: 1.3;}
.cart-item-price { font-weight: bold; color: var(--accent-yellow); font-size:1.1rem;}
.cart-item-remove {
    background: #e74c3c; color: white; border: none;
    border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 0.8rem;
    font-weight: bold;
}
.cart-item-remove:hover { background: #c0392b; }

.cart-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: right;
}
.cart-summary h4 { color: var(--white); font-size: 1.4rem; margin: 0; }

/* =========================================
   HAMBURGER MENU (Mobile Navigation)
   ========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.desktop-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-only-link {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .desktop-actions {
        display: none;
    }
    .mobile-only-link {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(0, 12, 28, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 204, 0, 0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 7rem 2rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s var(--ease-out);
        z-index: 150;
        display: flex;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .logo {
        height: 55px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .split-layout {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .marquee span {
        font-size: 0.8rem;
    }
    .py-section {
        padding: 4rem 0;
    }
}

/* =========================================
   CATALOG FILTER BUTTONS
   ========================================= */
#catalog-controls {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 2px solid var(--navy-light);
    background: transparent;
    color: var(--silver);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.25s var(--ease-out);
}
.filter-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--navy-dark);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.35);
}

/* =========================================
   PREMIUM PRODUCT CARDS (New system)
   ========================================= */
.catalog-section-header {
    margin: 3rem 0 1.5rem 0;
    color: var(--accent-yellow);
    text-align: left;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    padding-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.product-card {
    background: linear-gradient(145deg, rgba(0, 33, 71, 0.9), rgba(0, 18, 38, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 204, 0, 0.2);
    border-color: rgba(255, 204, 0, 0.3);
}

.product-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #001226, #002147);
}
.product-img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-img-photo {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-yellow);
    color: var(--navy-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.4);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}
.product-tagline {
    font-size: 0.78rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.product-info h4 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-desc {
    font-size: 0.875rem;
    color: var(--silver-dark);
    line-height: 1.6;
    margin: 0;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    letter-spacing: -0.02em;
}
.btn-add-cart {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    border: none !important;
    border-radius: 6px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================
   FLOATING DOC BUTTON (Mobile-safe)
   ========================================= */
.chat-trigger {
    background: var(--accent-yellow);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.4);
}
.chat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(255, 204, 0, 0.5);
}
.floating-head-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* =========================================
   MOBILE STORE GRID OVERRIDES
   ========================================= */
@media (max-width: 600px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-add-cart {
        width: 100% !important;
        text-align: center;
    }
    .chat-window {
        width: 90vw;
        right: 5vw;
        bottom: 80px;
        left: auto;
    }
    .cart-float {
        left: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    .config-options {
        grid-template-columns: 1fr;
    }
    .configurator-wrapper {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .doc-advisor {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    .doc-advisor img {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}
Clicking...Pressing key...Stopping...

Stop Agent